
#generate the path
CURRENT_PATH:=$(shell pwd)
#the current kernel version number
LINUX_KERNEL:=$(shell uname -r)
#the absolute path
#LINUX_KERNEL_PATH:=/usr/src/linux-headers-$(LINUX_KERNEL)
LINUX_KERNEL_PATH:=/home/weilaidb/kernel/linux.old1


obj-m += hello.o
all:
	make -C $(LINUX_KERNEL_PATH) M=$(PWD) modules
clean:
	make -C $(LINUX_KERNEL_PATH) M=$(PWD) clean
